<?php
include('dhead.html');
$pid = abs($_GET['pid']);
$did = 184;
$str_chk = "SELECT COUNT(*) AS c FROM uu_priceset WHERE pid=$did and tid=$pid AND aid=0";
$GLOBALS['le']->query($str_chk);
$GLOBALS['le']->fetch_assoc();
if(!$GLOBALS['le']->f('c')) {
    exit('您无权分销该产品！');
}
$str = "SELECT l.title as ltitle, t.title as ttitle, t.delaydays ";
$str .= "FROM uu_land l, uu_jq_ticket t WHERE t.landid = l.id AND t.pid={$pid} LIMIT 1";
$GLOBALS['le']->query($str);
$r = $GLOBALS['le']->fetch_assoc();
//print_r($r);
?>
  <script>document.title="淘宝产品对接"</script>
    <style type="text/css">
        .wrap{
            color: #656565;
            font: normal normal 12px/1.6 "Microsoft YaHei","/5b8b/4f53",arial;
        }
        .wrap h2{text-align: center;}
        .container{
            overflow: hidden;
            margin-top: 10px;
            margin-bottom: 20px;
            border: 2px solid #8DADCB;
            text-align: left;
            padding: 10px 0 10px 240px;
        }
        .container p{
            font-size: 18px;
            line-height: 28px;
        }
        .container p .L{
            float: left;
            width: 120px;
            text-align: center;
            color:#ed5a19;
        }
    </style>
<div class="wrap">
    <h2>码商产品添加信息</h2>
    <div class="container">
        <p><span class="L">景点名</span>：<?=$r['ltitle']?></p>
        <p><span class="L">宝贝标题</span>：<?=$r['ttitle']?></p>
        <p><span class="L">商家编码（1）</span>：<?=$pid?></p>
        <p><span class="L">商家编码（2）</span>：<?=$did?></p>
    </div>
</div>
<?include('dfoot.html');?>